package ro.gillardon.commons;

/**
 * An abstract specification for offer details which contains the common elements of plane, train, and hotel offers.
 *
 * @author davidl
 */
public abstract class OfferDetails {

  /** The price of the offer. */
  private Price price;

  /**
   * Initializes the price, set as protected.
   *
   * @param price the price entity
   */
  protected OfferDetails(final Price price) {
    this.price = price;
  }

  /** Default constructor. */
  protected OfferDetails() {
    // default constructor
  }

  /**
   * Gets the price.
   *
   * @return the price
   */
  public Price getPrice() {
    return this.price;
  }

  /**
   * Sets the price.
   *
   * @param price the new price
   */
  public void setPrice(final Price price) {
    this.price = price;
  }

}
